package net.thxjj.adminServer.dao;

import net.thxjj.adminServer.entity.aep.LoginData;
import net.thxjj.adminServer.util.ParameterMap;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LoginDataDao {
    public void saveLoginData(List<LoginData> list);
    public void saveSingleLoginData (LoginData loginData);
    public LoginData getNewestLoginInfo (@Param("device_id")String device_id);
    public List<LoginData> getAllLoginInfo(@Param("device_id")String device_id);
    public List<LoginData> getLoginInfoByTime(@Param("device_id")String device_id,@Param("begin_time")long begin_time);
    public List<LoginData> getLoginDataAtTime(@Param("device_id") String device_id, @Param("start_time") long start_time, @Param("end_time") long end_time);
    public List<ParameterMap> getAllLoginHandleInfo(@Param("device_id")String device_id);
    public List<ParameterMap> getLoginErrorList(@Param("device_id")String device_id);
    public void insertLoginHandle(ParameterMap pm);
    public List<LoginData> getAllLoginLog();
}
